<template>
  <div class="theHeader">
    <el-header>
      <div class="title">后台管理系统</div>
      <div>{{ username }}</div>
    </el-header>
  </div>
</template>

<script>
  export default {
    name: "TheHeader",
    data () {
      return {
          username: '',
      };
    },
    created () {
      this.username = sessionStorage.getItem("username");
    },
  }
</script>

<style scoped lang="scss">
.homePage {
  .el-header {
    background: #2578b6;
    color: #FFF;
    line-height: 60px;
    display: flex;
    justify-content: space-between;
    .title {
      width: 200px;
      font-size: 24px;
    }
  }
}
</style>